package com.trf.springcloud.mapper;

import com.trf.springcloud.pojo.Dept;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 小小唐
 * @Date 2022/5/19-星期四-21:01
 */
@Mapper
@Repository
public interface DeptMapper {
    //增加
    public boolean addDept(Dept dept);
    //查询
    public Dept queryById(Long id);
    //查询所有部门
    public List<Dept> queryAll();
}
